package com.server.rule.factory;

import org.jeasy.rules.api.Rules;

/**
 * Description: This is a sample class.
 * @Author Simon
 */
public class NettyRuleFactory {
    private volatile static Rules rules;
    private NettyRuleFactory(){

    }
    public static Rules getInstance(){
        if(rules==null){
            synchronized (NettyRuleFactory.class){
                if (rules==null){
                    rules=new Rules();
                }
            }
        }
        return rules;
    }
}
